package com.itheima.reggie.common;

/**
 * @Description: 封装ThreadLocal
 * @ClassName: BaseContext
 * @Author: xmc
 * @Date: 2022/8/16 9:20
 * @Version: 1.0
 */
public class BaseContext {
    private static ThreadLocal<Long> threadLocal = new ThreadLocal<>();

    public static  void setCurrentThreadLocal(Long Id){
        threadLocal.set(Id);
    }

    public static  Long getCurrentThreadLocal(){
        return threadLocal.get();
    }
}
